package com.blb.mapper;

import com.blb.pojo.Banner;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface BannerDao {
    int deleteByPrimaryKey(Integer bannerId);

    int insert(Banner record);

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(Integer bannerId);

    int updateByPrimaryKeySelective(Banner record);

    int updateByPrimaryKey(Banner record);

    /**
      * @Authoe: smz
      * @Description: 根据页头位置，排序最新三个轮播图
      * @Date: 9:14 2022-01-06
      */
    List<Banner>selectByLocation(@Param("location") int num);

}